var QQ_html='';
var skin='{@skin}';
QQ_html+='<style>';
QQ_html+='.plug_qq{width:154px;overflow:hidden;margin-top:200px;position:absolute;z-index:998;}';
QQ_html+='.plug_qq_head{background:url('+skin+'head.gif);height:46px;text-align:right;}';
QQ_html+='.plug_qq_head a{font-size:12px;padding:15px 10px 0 0;display:block;}';
QQ_html+='.plug_qq_foot{background:url('+skin+'foot.gif);height:10px;}';
QQ_html+='.plug_qq_body{background:url('+skin+'bg.gif);padding:2px 10px;}';
QQ_html+='.plug_qq_title{font-weight:bold;padding:5px 0;font-family:verdana;}';
QQ_html+='.plug_qq_body p{margin:14px 10px;padding:0;font-family:verdana;}';
QQ_html+='.plug_qq_line{border-bottom:1px solid #E6E6E6;margin:12px 0 8px 0;}';
QQ_html+='</style>';
QQ_html+='<div class="plug_qq" id="plugqq" style="top:120px;right:10px">';
QQ_html+='	<div class="plug_qq_head"><a href="javascript:;" onclick=$(".plug_qq").css("display","none") title="点击关闭">×</a></div>';
QQ_html+='	<div class="plug_qq_body">';

{loop}
QQ_html+='<p><a title="点击这里给我发消息" href="tencent://message/?uin={$QQ}&menu=yes" target="_blank">';
QQ_html+='<img src="http://wpa.qq.com/pa?p=1:{$QQ}:52" border="0" align="absmiddle" /> {$title}</a></p>';
{/loop}

QQ_html+='</div>';
QQ_html+='<div class="plug_qq_foot"></div>';
QQ_html+='</div>';

document.write(QQ_html);

lastScrollY = 0;
function plug_qq(){
	var diffY;
	if (document.documentElement && document.documentElement.scrollTop)
	diffY = document.documentElement.scrollTop;
	else if (document.body)
	diffY = document.body.scrollTop
	else
	{}
	percent=.1*(diffY-lastScrollY);
	if(percent>0)percent=Math.ceil(percent);
	else percent=Math.floor(percent);
	document.getElementById("plugqq").style.top = parseInt(document.getElementById("plugqq").style.top)+percent+"px";
	lastScrollY=lastScrollY+percent;
}
window.setInterval("plug_qq()",20);